package com.myblog.blog.service.impl;

import com.myblog.blog.common.utils.PageUtils;
import com.myblog.blog.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.myblog.blog.dao.UserFriendsDao;
import com.myblog.blog.entity.UserFriendsEntity;
import com.myblog.blog.service.UserFriendsService;


@Service("userFriendsService")
public class UserFriendsServiceImpl extends ServiceImpl<UserFriendsDao, UserFriendsEntity> implements UserFriendsService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserFriendsEntity> page = this.page(
                new Query<UserFriendsEntity>().getPage(params),
                new QueryWrapper<UserFriendsEntity>()
        );

        return new PageUtils(page);
    }

}